import Mock from 'mockjs';

Mock.mock('/login', (req: any) => {
  const { body } = req;
  console.log(body);
  const { username, password } = JSON.parse(body);
  console.log(username, password);
  return {
    token: 'aaaaa',
  };
});
